package net.wangxl.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: wangxl
 * @Date: 2019/1/25 20:30
 */
@Component
public class My {

    @Value("${my.name}")
    String name;

    @Value("${my.age}")
    int age;

    @Override
    public String toString() {
        return "My{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
